package com.aishua.fire.jpa.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

@Entity
@Table(name="is_login_history")
@Data
public class LoginHistory  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// 没有默认构造会报错
    public LoginHistory(){
    }
    

	@Id
    @GeneratedValue
    @Column(name = "id",columnDefinition="bigint COMMENT '登录记录主id,主键,自动生成'")
    private Long id;
    
	@Column(nullable = false,columnDefinition="varchar(32) COMMENT '输入的登录用户名'")
	private String loginName;
    @Column(nullable = false,columnDefinition="varchar(32) COMMENT '输入的登录密码'")
    private String loginPassword;
    
    @Column(nullable = false,columnDefinition="varchar(32) COMMENT '登录状态,成功,失败'")
    private String loginStatus;
    @Column(nullable = true,columnDefinition="varchar(32) COMMENT '本次访问者ip'")
    private String clientIp;
    @Column(nullable = true,columnDefinition="varchar(32) COMMENT '本次访问者isp名称'")
    private String clientIspName;
    @Column(nullable = true,columnDefinition="varchar(32) COMMENT '本次访问者ip所在城市'")
    private String clientIpCity;
    
    @Column(nullable = false,columnDefinition="DATETIME COMMENT '记录添加时间'")
    private Date createDate;
    

}
